home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 000361_connolly@pixel.convex.com _Thu Nov 19 22:24:03 1992.msg < prev    next >
Internet Message Format  |  1994-01-24  |  4KB

  1. Return-Path: <connolly@pixel.convex.com>
  2. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  3.     id AA17427; Thu, 19 Nov 92 22:24:03 MET
  4. Received: by dxmint.cern.ch (dxcern) (5.57/3.14)
  5.     id AA24297; Thu, 19 Nov 92 22:36:36 +0100
  6. Received: from pixel.convex.com by convex.convex.com (5.64/1.35)
  7.     id AA29321; Thu, 19 Nov 92 15:36:19 -0600
  8. Received: from localhost by pixel.convex.com (5.64/1.28)
  9.     id AA09136; Thu, 19 Nov 92 15:36:17 -0600
  10. Message-Id: <9211192136.AA09136@pixel.convex.com>
  11. To: marca@ncsa.uiuc.edu (Marc Andreessen)
  12. Cc: www-talk@nxoc01.cern.ch
  13. Subject: Re: Freezing the HTML spec Re: Comments in HTML ? 
  14. In-Reply-To: Your message of "Thu, 19 Nov 92 13:30:11 PST."
  15.              <9211192130.AA10669@wintermute.ncsa.uiuc.edu> 
  16. Date: Thu, 19 Nov 92 15:36:16 CST
  17. From: Dan Connolly <connolly@pixel.convex.com>
  18.  
  19.  
  20. >Dan Connolly writes:
  21. >> Hmmm... we definitely need a CSCW strategy for group-editing of
  22. >> documents.
  23. >
  24. >I'm pulling this outta my rear end, but how about:
  25. >
  26. >(a) Anyone who wishes to annotate a document must be running HTTP or
  27. >    have some other way of making his annotation available as a
  28. >    document from his machine to the web -- possibly too much grunge
  29. >    work for real ``users'' as opposed to hackers.
  30.  
  31. Ding! The light goes on: Let's use USENET news! Scenario:
  32.  
  33. 1. I'm reading http://info.cern.ch/hypertext/WWW/MarkUp.html.
  34.  
  35. 2. I see something I want to change, so I save the HTML to
  36. a file.
  37.  
  38. 3. I edit the file, trimming it down and adding my comments.
  39.  
  40. 4. I enclose the file in a news article using the MIME text/x-html
  41. content type and the quoted-printable content transfer encoding.
  42.  
  43. 5. I post the article to comp.infosystems or alt.infosystems.www.
  44.  
  45. 6. I make a URL out of the message-id of the article, and I
  46. send
  47. LINK /hypertext/WWW/MarkUp.html
  48. <A HREF="news:<message-id>">Comments by connolly@convex.com</a>
  49. .
  50.  
  51. to the HTTP server at info.cern.ch.
  52.  
  53. 7. We add MIME style message/rfc-822 parsing to the browser. See below.
  54.  
  55. 8. I'm browsing the annotated http://info.cern.ch/hypertext/WWW/MarkUp.html
  56. and I click on "Comments by connolly@convex.com". The browser contacts
  57. its NNTP server and grabs message-id.
  58.  
  59. 9. It extracts the body, and displays the result as HTML.
  60.  
  61.  
  62. Ding! Another light goes on. Here's how to handle MIME body parts:
  63.  
  64. We need a function:
  65.  
  66. void
  67. HText_AppendBodyPart(HText* target, int (*getch)(void*), void* stream,
  68.     int type, int subtype, char* params);
  69. /*
  70.  * PRE:
  71.  * target -- hypertext object "in append mode"
  72.  * getch -- get one character from stream object
  73.  * stream -- opaque stream object
  74.  * type -- one of the 7 mime primary types: MIME_TEXT, MIME_MESSAGE, etc.
  75.  * subtype -- plain, html, postscript, gif, basic, multipart, etc.
  76.  * params -- "name=val; name=val;..." parameters
  77.  *
  78.  * POST:
  79.  * body part on stream has been consumed and appended to or linked
  80.  * to target.
  81.  */
  82.  
  83. text/html -- append as SGML text entity
  84. text/* -- append as plain text
  85.     to the SGML parser, it's an external entity text/plain NOTATION
  86. multipart/* -- find boundary on stream
  87.     create a new stream object out of getch, stream,
  88.     and params that returns eof at the boundary
  89.     call HText_AppendBodyPart recursively
  90. message/rfc-822 -- parse headers, display headers as
  91.      <DL><DT>Subject<DD>foo...</DL>
  92.     append body part recursively
  93. message/external-body -- create a URL out of params. Parse
  94.     message headers. Display as
  95.     <H2><A href="URL" type="type/subtype params">description</a><H2>
  96. */* -- save to local file foo. display as
  97.     <H2><a HREF="file:foo" TYPE="type/subtype params">description</a></H2>
  98.     where description is the content-description, if available, or
  99.     "a body part of type image/gif" otherwise.
  100.  
  101. Then we can add a separate command that takes a link, opens it, and
  102. pipes it through metamail.
  103.  
  104. Hmmm... I gotta go code this up!
  105.  
  106. Dan
  107.